﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Reflection;

namespace HogBlog.Areas.Webmaster.Models
{
    public class Diagnostics
    {
        private Assembly assembly;

        public Diagnostics()
        {
            this.assembly = Assembly.GetExecutingAssembly();
        }

        public string GetDescription()
        {
            return ((AssemblyDescriptionAttribute)Attribute.GetCustomAttribute(
                this.assembly, typeof(AssemblyDescriptionAttribute))).Description;
        }

        public string GetVersion()
        {
            
            return assembly.GetName().Version.ToString();
        }
    }
}